package com.example.myaccounting.activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.example.myaccounting.R;

/**
 * Created by 啦啦啦 on 2018/11/23.
 */

public class Main_QiDong extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.qidong_main);
        Handler handler=new Handler();
        //postDelayed(Runnable r, long delayMillis) 方法就是设置在设定的时间后执行 Runnable 中的 run()，
        // delayMillis 单位是毫秒。
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                Intent intent = new Intent(Main_QiDong.this,MainActivity.class);
                startActivity(intent);
                finish();
            }
        },1500);
    }
}
